<?php
include("../includes/common.php");
if($islogin2==1){}else exit("<script language='javascript'>window.location.href='./login.php';</script>");
include './head.php';
$list=$DB->query("SELECT * FROM panel_log WHERE uid={$pid} order by date desc limit 15")->fetchAll();
?>


<div class="clearfix"></div>
  <div class="content-wrapper">
    <div class="container-fluid">  
     <div class="row pt-2 pb-2">
        <div class="col-sm-9">
            <h4 class="page-title">会员登入记录</h4>
            <ol class="breadcrumb">
            <li class="breadcrumb-item"><a href="javaScript:void();">登入</a></li>
            <li class="breadcrumb-item"><a href="javaScript:void();">记录</a></li>
            <li class="breadcrumb-item active" aria-current="page">信息</li>
         </ol>
       </div>
      </div>
     </div>

 <div class="row">
        <div class="col-lg-12">
          <div class="card">
            <div class="card-header"><i class="fa fa-table"></i>会员记录
            </div>
            <div class="card-body">
              <div class="table-responsive">

              <table id="default-datatable" class="table table-bordered">
                <thead>
                   <tr>
                                   <th>ID</th>
                                       <th>登陆ID</th>
                                       <th>登陆操作</th>
                                       <th>登录时间</th>
                                       <th>登陆IP</th>
                                 </tr>
                </thead>
                <tbody>
                      <?php
                          foreach($list as $res){
                    echo '<tr><td><b>'.$res['id'].'</b></td><td>'.$res['uid'].'</td><td>'.$res['type'].'</td><td>'.$res['date'].'</td><td>'.$res['data'].'</td></td></tr>';
                  }?>
                                 </tbody>
                    </table>
           </div>
      </div>
</div>
</div>
</div>
<?php include 'foot.php';?>